//path模块(处理文件路径)
const path = require("path");
const fs = require("fs");
console.log(path.sep) //路径分隔符 windows:\ linux:/
let data = fs.readFileSync("C:" + path.sep + "install.log", "utf-8")
    // console.log(data)
let p = path.join("C:", "install.log")
console.log(p)
let p1 = path.join("src:", "aa.js")
console.log(p1)
let p2 = path.join("D:", "java-script", "node", "demo1.js")

console.log(p2)